package com.pig4cloud.pig.file.service;

import com.pig4cloud.pig.common.core.util.R;
import org.springframework.web.multipart.MultipartFile;

import jakarta.servlet.http.HttpServletResponse;

public interface FarmFileService {

	/**
	 * 上传文件
	 * @param file
	 * @return
	 */

	public R uploadFarmFile(MultipartFile file);


	/**
	 * 读取文件
	 * @param fileDir 桶名称
	 * @param fileName 文件名称
	 * @param response 输出流
	 */
	void getFile(String fileDir, String fileName, HttpServletResponse response);
}
